<?php

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        Eloquent::unguard();

        $this->call(UsersTableSeeder::class);
        $path = database_path('sql\bhcd_data.sql');
        DB::unprepared(file_get_contents($path));

        $path = database_path('sql\init_fee_types.sql');
        DB::unprepared(file_get_contents($path));

        $this->command->info('all table seeded!');
        Eloquent::reguard();
    }
}
